$(document).ready(function() {
	showCowAndButtons();

	$("#showHorse").click(function(event) {
		showHorseAndButtons();
	});

	$("#showCow").click(function(event) {
		showCowAndButtons();
	});

});

var showHorseAndButtons = function() {
	showHorse();
	showCowButton();
	showCow(false);
	showHorseButton(false);

};

var showCowAndButtons = function() {
	showCow();
	showHorseButton();
	showHorse(false);
	showCowButton(false);
};

var showHorse = function(show) {
	if (typeof (show) == "undefined")
		show = true;

	if (show == true) {
		$("#horse").show();
	} else {
		$("#horse").hide();

	}
};

var showHorseButton = function(show) {
	if (typeof (show) == "undefined")
		show = true;
	if (show == true) {
		$("#showHorse").show();
	} else {
		$("#showHorse").hide();

	}
};

var showCow = function(show) {
	if (typeof (show) == "undefined")
		show = true;

	if (show == true) {
		$("#cow").show();
	} else {
		$("#cow").hide();

	}
};

var showCowButton = function(show) {
	if (typeof (show) == "undefined")
		show = true;
	if (show == true) {
		$("#showCow").show();
	} else {
		$("#showCow").hide();

	}
};